<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Limit results</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="tokyotyrantquery.search.html">TokyoTyrantQuery::search</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="tokyotyrantquery.setorder.html">TokyoTyrantQuery::setOrder</a></div>
 <div class="up"><a href="class.tokyotyrantquery.html">TokyoTyrantQuery</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="tokyotyrantquery.setlimit" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">TokyoTyrantQuery::setLimit</h1>
  <p class="verinfo">(PECL tokyo_tyrant &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">TokyoTyrantQuery::setLimit</span> &mdash; <span class="dc-title">Limit results</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-tokyotyrantquery.setlimit-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>TokyoTyrantQuery::setLimit</strong></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$max</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$skip</code></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Set the maximum amount of records to return on a query.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-tokyotyrantquery.setlimit-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">max</code></em></dt>

     <dd>

      <p class="para">
       Maximum amount of records. Default: -1
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">skip</code></em></dt>

     <dd>

      <p class="para">
       How many records to skip from the start. Default: -1
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-tokyotyrantquery.setlimit-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   This method returns the current object and throws TokyoTyrantException on failure.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="tokyotyrantquery.search.html">TokyoTyrantQuery::search</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="tokyotyrantquery.setorder.html">TokyoTyrantQuery::setOrder</a></div>
 <div class="up"><a href="class.tokyotyrantquery.html">TokyoTyrantQuery</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
